package medicine.dao.mapper;

import medicine.dao.entity.MedicineInfoPO;
import medicine.dao.entity.MedicineRecordPO;

import java.util.Date;
import java.util.List;


/**
 * Created by qianyang on 2018/5/2.
 */
public interface MedicineMapper {
    MedicineInfoPO getMedicineInfoById(Integer medicineId);
        List<MedicineRecordPO> selcetMedicineRecord(Integer userId, Date date);
        List<MedicineInfoPO> selcetALLMedicineInfo();
        List<MedicineInfoPO> selectMedicineInfoByName(String name);
        MedicineRecordPO getMedicineRecordById(Integer medicineRecordId);
        int insertMedicineRecord(MedicineRecordPO medicineRecordPO);
        void delectMedicineRecord(Integer id);
    }
